Skip to main content

printerName

Type

property

Summary

Reports the name of the currently selected printer.

Syntax

set the printerName to <string>
get the printerName

Description

Use the printerName property to determine or set the printer that will be used by LiveCode.

Setting the printerName to empty will reset the printer to the system default, and all printer settings to the default for that printer.

To have an effect, this property must be set before calling open printing.

Examples

set the printerName to "PostScript Printer"
if the printerName is not empty then
enable button "Print" of me
end if

command: open printing, answer printer

function: result

property: printTitle

Compatibility and Support

Introduced

LiveCode 2.9

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?